<%-- 
/**
*    This file is part of Basic Service.
*
*    Basic Service is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*
*    Basic Service is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with Basic Service (See GPL.txt).  If not, see <http://www.gnu.org/licenses/>.
*    
* 	If needed the author is Amir Zucker and can be reached at amirzucker1@gmail.com or amirzucker.wordpress.com
*/
--%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="container">
	<div id="overTheTopStrip" class="overTheTopStrip">
		<tiles:insertAttribute name="country_selection" />
	</div>
	<div id="topStrip" class="topStrip">
		<div class="logo"><a href="/"><img src="/resources/images/logo.png" height="60px"/></a></div>
		<div class="login">
			<button id="login"><spring:message code="button.text.login"/></button>&nbsp;
			<script>
				$("#login").button({ disabled: true });
				$("#login").click(function() { loginButtonClicked();});
				addButtonToButtonsList($("#login"));
			</script>
			<button id="register"><spring:message code="button.text.register"/></button>
			<script>
				$("#register").button({ disabled: true });
				$("#register").click(function() { showRegister();});
				addButtonToButtonsList($("#register"));
			</script>
		</div>
		<div id="menuItems" class="menuItems">
			<div class="menuItem" id="homeMItem" onclick="menuItemClicked(this);" onmouseout="showNormalMenuStyle(this);" onmousemove="showHoverMenuStyle(this);"><spring:message code="menuitem.home"/></div>
			<div class="menuItem" id="adminMItem" onclick="menuItemClicked(this);" onmouseout="showNormalMenuStyle(this);" onmousemove="showHoverMenuStyle(this);"><spring:message code="menuitem.admin"/></div>
			<div class="menuItem" id="contactMItem" onclick="menuItemClicked(this);" onmouseout="showNormalMenuStyle(this);" onmousemove="showHoverMenuStyle(this);"><spring:message code="menuitem.contact"/></div>
			<div class="menuItem" id="aboutMItem" onclick="menuItemClicked(this);" onmouseout="showNormalMenuStyle(this);" onmousemove="showHoverMenuStyle(this);"><spring:message code="menuitem.about"/></div>
		</div>
	</div>
	<div id="centralStrip" class="centralStrip">
		<div id="dialogs">
			<div id="dialog-form-template" class="dialog-form" title="{dialog header 1}" style="display:none;">
			    <p id="validateTips" class="validateTips">{dialog messages}</p>
			    <form>
			    <fieldset>
			        <label id="labelTemplate" class="fieldSetContent" for="{fieldName}">{fieldLabel}</label>
			        <input id="inputTextTemplate" type="text" name="{fieldName}" class="fieldSetContent text ui-widget-content ui-corner-all" />
			        <input id="inputPasswordTemplate" type="password" name="fieldName}" class="fieldSetContent text ui-widget-content ui-corner-all" />
			    </fieldset>
			    </form>
			    <a id="dialogFormLinkTemplate" class="dialogFormLinkTemplate" href="{target}" target="_blank">{link}</a>
			</div>
			<div id="dialog-message" title="{dialog header 1}" style="display:none;">
				<BR/>
			    <p id="dialogMessageMessage" class="dialogMessageMessage">{dialog message content}</p>
				<BR/>
			</div>			
		</div>
		<tiles:insertAttribute name="central_strip" />
		<div class="contentLoadingOverlayWrapper" id="contentLoadingOverlayWrapper">
			<div class="contentLoadingOverlay" id="contentLoadingOverlay">
				<img src="/resources/images/loading.gif" />
			</div>
			<div class="issuesMessageOverlay" id="issuesMessageOverlay">
				<spring:message code="messages.error.connectionIssues"/>
			</div>
		</div>
	</div>
	<div id="bottomStrip" class="bottomStrip">
		<div class="policiesLink" id="policiesLink"><a href="/privacypolicy.html"><spring:message code="button.text.privacypolicy"/></a>&nbsp;&nbsp;<a href="/termsofservice.html"><spring:message code="button.text.serviceterms"/></a></div>
	</div>
</div>